package com.xingzuo.library_expert.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.xingzuo.base.app.AppActivityKey;
import com.xingzuo.base.ui.mvp.base.ui.BaseMvpActivity;
import com.xingzuo.library_expert.R;
import com.xingzuo.library_expert.R2;
import com.xingzuo.library_expert.contract.ExpertDetailContract;
import com.xingzuo.library_expert.presenter.ExpertDetailPresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = AppActivityKey.EXPERTDETAILACTIVITY)
public class ExpertDetailActivity extends BaseMvpActivity<ExpertDetailPresenter> implements ExpertDetailContract.View {
    @BindView(R2.id.rv_back)
    ImageView rvBack;
    @BindView(R2.id.tv_reservation)
    TextView tvReservation;

    @Override
    public ExpertDetailPresenter getPresenter() {
        return new ExpertDetailPresenter();
    }

    @Override
    public int getView() {
        return R.layout.activity_expertdetail;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.rv_back, R2.id.tv_reservation})
    public void onViewClicked(View view) {
        if (view.getId() == R.id.rv_back){
            finishActivity();
        }else if (view.getId() == R.id.tv_reservation){
            startIntent(AppActivityKey.MYRESERVATIONACTIVITY);
        }
    }
}